# $NetBSD$

GITHUB_TAG=	v${PKGVERSION_NOREV}
DISTNAME=	flameshot-12.1.0
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_GITHUB:=flameshot-org/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://flameshot.org/
COMMENT=	Powerful yet simple to use screenshot software
LICENSE=	gnu-gpl-v3

ICON_THEMES=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c++

PKGCONFIG_OVERRIDE+=	external/Qt-Color-Widgets/QtColorWidgets.pc.in

# Unclear why this subsitution doesn't work.
# It makes the manpage not get installed at all.
#SUBST_CLASSES+=	mandir
#SUBST_STAGE.mandir=	pre-configure
#SUBST_FILES.mandir=	src/CMakeLists.txt
#SUBST_SED.mandir+=	-e 's,share/man,${PKGMANDIR}/man,g'

.include "../../devel/cmake/build.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
